export default {
    data: {
        title: 'World',
        timerAValue:5,
        timerA:null,
        timerBValue:1,
        timerB:null,
    },
    setTimeout(){
        this.timerA=setTimeout(()=>{
            this.timerAValue-=1
        }, 3000);
    },
    clearTimeout(){
        clearTimeout(this.timerA);
    },
    setInterval(){
        this.timerB= setInterval(()=>{
            this.timerBValue+=1
        }, 1000);
    },
    clearInterval(){
        clearInterval( this.timerB);
    }
}
